From 3ad7a86961eb56fb44fef03d998b0d0cc97dcb1c Mon Sep 17 00:00:00 2001 From: Daniel Boles Date: Thu, 5 Oct 2017 10:07:17 +0100 Subject: [PATCH] HighContrast: Actually style tooltips... We need to select on the widget itself too, not just other things with the .tooltip class. https://bugzilla.gnome.org/show_bug.cgi?id=769879 --- gtk/theme/HighContrast/_common.scss | 2 ++ gtk/theme/HighContrast/gtk-contained-inverse.css | 4 ++-- gtk/theme/HighContrast/gtk-contained.css | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss index 4b8be0a2d6..6154416d89 100644 --- a/gtk/theme/HighContrast/_common.scss +++ b/gtk/theme/HighContrast/_common.scss @@ -3085,6 +3085,7 @@ infobar { * Tooltips * ************/ +tooltip, .tooltip { color: white; padding: 4px; /* not working */ @@ -3094,6 +3095,7 @@ infobar { // border: 2px solid $borders_color; gnome shell style? } +tooltip *, .tooltip * { //Yeah this is ugly padding: 4px; background-color: transparent; diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css b/gtk/theme/HighContrast/gtk-contained-inverse.css index 17ce53ec4f..10ba7ab3fe 100644 --- a/gtk/theme/HighContrast/gtk-contained-inverse.css +++ b/gtk/theme/HighContrast/gtk-contained-inverse.css @@ -1399,9 +1399,9 @@ infobar { border-width: 0; border-style: none; } .info label:selected, .info label:selected:focus, .info label:selected:hover, .question label:selected, .question label:selected:focus, .question label:selected:hover, .warning label:selected, .warning label:selected:focus, .warning label:selected:hover, .error label:selected, .error label:selected:focus, .error label:selected:hover { background-color: white; } /************ Tooltips * */ -.tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; } +tooltip, .tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; } -.tooltip * { padding: 4px; background-color: transparent; color: inherit; } +tooltip *, .tooltip * { padding: 4px; background-color: transparent; color: inherit; } /***************** Color Chooser * */ colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #000; } diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css index ad15af2f89..365d7b12fb 100644 --- a/gtk/theme/HighContrast/gtk-contained.css +++ b/gtk/theme/HighContrast/gtk-contained.css @@ -1405,9 +1405,9 @@ infobar { border-width: 0; border-style: none; } .info label:selected, .info label:selected:focus, .info label:selected:hover, .question label:selected, .question label:selected:focus, .question label:selected:hover, .warning label:selected, .warning label:selected:focus, .warning label:selected:hover, .error label:selected, .error label:selected:focus, .error label:selected:hover { background-color: #333333; } /************ Tooltips * */ -.tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; } +tooltip, .tooltip { color: white; padding: 4px; /* not working */ border-radius: 5px; background-color: rgba(0, 0, 0, 0.8); text-shadow: 0 1px black; } -.tooltip * { padding: 4px; background-color: transparent; color: inherit; } +tooltip *, .tooltip * { padding: 4px; background-color: transparent; color: inherit; } /***************** Color Chooser * */ colorswatch { box-shadow: inset 0 1px rgba(0, 0, 0, 0.1), 0 1px #fff; } -- 2.30.2